package com.kyl.service.impl;


import com.kyl.mapper.RoomMapper;
import com.kyl.service.RoomService;
import com.kyl.vo.RoomVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author WanJl
 * @version 1.0
 * @title RoomServiceImpl
 * @description
 * @create 2025/1/18
 */
@Service
@Slf4j
public class RoomServiceImpl implements RoomService {
    @Resource
    private RoomMapper roomMapper;
    @Override
    public List<RoomVo> getRoomsWithNurByFloorId(Long floorId) {
        return roomMapper.getRoomsWithNurByFloorId(floorId);
    }

    @Override
    public List<RoomVo> getRoomsByFloorId(Long floorId) {
        return roomMapper.getRoomsByFloorId(floorId);
    }

    @Override
    public List<RoomVo> getListByRoomTypeName(String roomTypeName) {

        return roomMapper.getListByRoomTypeName(roomTypeName);
    }
}
